<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="data"></div>
<script src="../assets/js/jquery-3.3.1.min.js"></script>
<script>
/*    $.ajax({
        type: "GET",
        async:false,
        url: "http://172.16.2.191:8089/v1/acars/listPosByFlightIdJsonp",
        dataType: "jsonp",
        // jsonp: "callback",
        data: {
            flightId: "303557",
        },
        success: function (data) {
            console.log("success");
            var list = JSON.stringify(data);
            console.log("list: " + list);
        },
        error: function () {
            console.log("获取数据失败！");
        }
    });*/
    function onback(data){
    }
    $.get({
        url:'http://172.16.2.191:8089/v1/acars/listPosByFlightIdJsonp?flightId=303744',
        // url:'http://172.16.2.191:8089/v1/acars/listPosByFlightIdJsonp?flightId=303557',
        // url:'https://vdata.amap.com/tiles?mapType=normal&v=3&style=5&rd=1&flds=region&t=12,3398,1622;12,3397,1622&lv=12&preload=1&_id=1557048836320',
        // url:'http://172.16.3.169:9999/api/v1/common/interface/getByDataType?dataType=hl_qdhk_yyfxpt_map_shshhx',
        // url:'http://172.16.2.191:8089/v1/acars/listPosByFlightId?flightId=303542',
        // url:'http://172.16.2.142:11080/flight/getRiskCfpJsonp',
        dataType: 'jsonp',  // 请求方式为jsonp
        // jsonp: 'callback',
        // jsonpCallback: "onback", // 自定义回调函数名
        success(data){
            $("#data").text(data)
            console.log(data)
            // $("#data").text(JSON.stringify(data[0]))
        }
    })
</script>
</body>
</html>